﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GSite.Model.UnitOfWork;
using GSite.Model.Entities;

namespace GSite.Model.Repositories
{
    public class RepositoryBase : IRepository
    {
        public IUnitOfWork UnitOfWork { get; set; }
        internal GSiteEntities DataContext
        {
            get
            {
                return ((GSiteUnitOfWork)UnitOfWork).DataContext;
            }
        }
    }
}
